package com.wh.wisdomsite.xbox.ba.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * 公共附件实体类
 * @author 刘旭
 * @version V1.0
 * @Package com.wh.wisdomsite.xbox.ba.entity
 * @date 2018年08月03日 15:30
 * @Copyright 企业版权所有
 * @Company 贵州万华科技有限公司CopyRight (c) 2018
 */
@TableName("ba_commonFile")
public class CommonFile extends Model<CommonFile>{

    /**
     * 附件id
     */
    @TableId(type = IdType.UUID)
    private String fileId;

    /**
     * 外键ID
     */
    @TableField("fkId")
    private String fkId;

    /**
     * 数据业务类型, 自定义
     */
    @TableField("fkType")
    private String fkType;

    /**
     * 附件所属板块名称
     */
    @TableField("modelName")
    private String modelName;

    /**
     * 附件所属板块代码
     */
    @TableField("modelCode")
    private String modelCode;

    /**
     * 附件所属功能名称
     */
    @TableField("funName")
    private String funName;

    /**
     * 附件所属功能代码
     */
    @TableField("funCode")
    private String funCode;

    /**
     * 文件名称(不含后缀)
     */
    @TableField("name")
    private String name;

    /**
     * 文件地址
     */
    @TableField("url")
    private String url;

    /**
     * 文件大小(算法K,KB,MB,GB)
     */
    @TableField("size")
    private String size;

    /**
     * 文件后缀(.doc,.jpg)
     */
    @TableField("fix")
    private String fix;

    /**
     * 附件MD5
     */
    @TableField("md5")
    private String md5;

    /**
     * 上传时间
     */
    @TableField("createdate")
    private Date createdate;

    /**
     * 上传人
     */
    @TableField("createby")
    private String createby;

    /**
     * 公司编码
     */
    @TableField("compCode")
    private String compCode;

    public String getFileId() {
        return fileId;
    }

    public void setFileId(String fileId) {
        this.fileId = fileId;
    }

    public String getFkId() {
        return fkId;
    }

    public void setFkId(String fkId) {
        this.fkId = fkId;
    }

    public String getFkType() {
        return fkType;
    }

    public void setFkType(String fkType) {
        this.fkType = fkType;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String modelName) {
        this.modelName = modelName;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public String getFunName() {
        return funName;
    }

    public void setFunName(String funName) {
        this.funName = funName;
    }

    public String getFunCode() {
        return funCode;
    }

    public void setFunCode(String funCode) {
        this.funCode = funCode;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getFix() {
        return fix;
    }

    public void setFix(String fix) {
        this.fix = fix;
    }

    public String getMd5() {
        return md5;
    }

    public void setMd5(String md5) {
        this.md5 = md5;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getCreateby() {
        return createby;
    }

    public void setCreateby(String createby) {
        this.createby = createby;
    }

    public String getCompCode() {
        return compCode;
    }

    public void setCompCode(String compCode) {
        this.compCode = compCode;
    }

    @Override
    protected Serializable pkVal() {
        return fileId;
    }
}
